/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.yunhoo.base.model;

import com.yunhoo.sys.util.common.LoginParam;
import java.util.Date;

/**
 *
 * @author Administrator
 */
public class BaseModel {

    private String orgCode;//单位
    private String orgName;
    private Integer iyear;//年度
    private String jlr_ID;//记录人id
    private Date jl_RQ;//记录日期
    private String xgr_ID;//修改人id
    private Date xg_RQ;//修改日期
    private boolean selected = false;

    public BaseModel() {
    }

    public BaseModel(boolean initWithLoginInfo) {
        if (initWithLoginInfo) {
            this.orgCode = LoginParam.getOrg().getCode();
            this.orgName = LoginParam.getOrg().getName();
            this.iyear = LoginParam.getIyear();
            this.jlr_ID = LoginParam.getPer().getCpsn_number();
            this.jl_RQ = new Date();
            this.xgr_ID = LoginParam.getPer().getCpsn_number();
            this.xg_RQ = new Date();
        }
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Integer getIyear() {
        return iyear;
    }

    public void setIyear(Integer iyear) {
        this.iyear = iyear;
    }

    public String getJlr_ID() {
        return jlr_ID;
    }

    public void setJlr_ID(String jlr_ID) {
        this.jlr_ID = jlr_ID;
    }

    public Date getJl_RQ() {
        return jl_RQ;
    }

    public void setJl_RQ(Date jl_RQ) {
        this.jl_RQ = jl_RQ;
    }

    public String getXgr_ID() {
        return xgr_ID;
    }

    public void setXgr_ID(String xgr_ID) {
        this.xgr_ID = xgr_ID;
    }

    public Date getXg_RQ() {
        return xg_RQ;
    }

    public void setXg_RQ(Date xg_RQ) {
        this.xg_RQ = xg_RQ;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }
}
